import request from "../utils/request";

//获取礼包列表
export function getCouponPackList(data) {
  return request({
    method: "post",
    url: "/api/couponpack/GetAll",
    data
  });
}

//根据id获取礼包详情
export function getCouponpackById(params) {
  return request({
    method: "get",
    url: "/api/couponpack/Get",
    params
  });
}

//创建礼包
export function createCouponPack(data) {
  return request({
    method: "post",
    url: "/api/couponpack/Add",
    data
  });
}

//编辑礼包
export function updateCouponpack(data) {
  return request({
    method: "post",
    url: "/api/couponpack/Update",
    data
  });
}

//删除礼包
export function delectCouponpack(data) {
  return request({
    method: "post",
    url: "/api/couponpack/Delete",
    data
  });
}

//礼包开关状态
export function setCouponpackState(data) {
  return request({
    method: "post",
    url: "/api/couponpack/IsActive",
    data
  });
}

//礼包流水
export function getPackOrderList(params) {
  return request({
    method: "get",
    url: "/api/PCApplet/PackOrderList_Admin",
    params
  });
}


